import { SLIDE_PADDING } from ".";

/** konva 默认 slide 的配置项 */
export function DEFAULT_SLIDE_OPTIONS(width: number, height: number) {
  const rectoption = {
    x: 5,
    y: 5,
    width: width - SLIDE_PADDING,
    height: height - SLIDE_PADDING,
  };
  const textOption = {
    x: width / 2,
    y: height / 2,
    text: "单击此处添加新幻灯片",
    fontSize: 30,
    fontFamily: "Calibri",
    fill: "#9EA1A3",
  };
  return { rectoption, textOption };
}
